package com.qian.service.ddj.entity;

import com.yaowk.service.common.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import java.util.Date;

@Getter
@Setter
@ToString
@Entity
@DynamicUpdate
@DynamicInsert
public class DdjChangeCard extends BaseEntity<Long> {

    private String cardNo;
    private String cardPerson;
    private String cardPhone;
    private String cardBank;

    private Byte status;
    @CreationTimestamp
    private Date createTime;

    @ManyToOne
    private DdjUser user;
}
